<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#">收银员管理</a></li>

		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('blog/Cashier/cashier')}">
			商店搜索:
			<select class="form-control" name="storeid" style="width: 140px;">
				<option value='0'>全部</option>
				<foreach name='shop' item="shop">
					<option value="{$shop.id}">{$shop.store_name}</option>
				</foreach>
			</select> &nbsp;&nbsp;
			店员搜索：
			<input type="text" class="form-control" name="operatorid" style="width: 200px;"
				   value="{:input('request.operatorid')}" placeholder="请输入收银员ID...">
			时间:
			<input type="text" class="form-control js-bootstrap-datetime" name="start_time"
				   value="{:input('request.start_time')}"
				   style="width: 140px;" autocomplete="off">-
			<input type="text" class="form-control js-bootstrap-datetime" name="end_time"
				   value="{:input('request.end_time')}"
				   style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
			<input type="submit" class="btn btn-primary" value="搜索"/>
			<a class="btn btn-danger" href="{:url('Cashier/cashier')}">清空</a>
		</form>
		<form action="{:url('')}" method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="40">ID</th>
						<th align="left">订单ID</th>
						<th align="left">操作金额</th>
						<th align="left">付款金额</th>
						<th align="left">找零金额</th>
						<th align="left">实收金额</th>
						<th align="left">优惠金额</th>
						<th align="left">收银时间</th>
						<th width="160">操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="data" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.orderNo}</td>
						<td>{$vo.totalMoney}</td>
						<td>{$vo.getMoney}</td>
						<td>{$vo.giveChange}</td>
						<td>{$vo.actualMoney}</td>
						<td>{$vo.discount}</td>
						<td>{$vo.utime|date="y-m-d H:m:s",###}</td>
						<td>
							<a href="{:url('Cashier/cashier')}">查看详情</a>
						 </td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<ul class="pagination">{$page|default=''}</ul>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>